package com.xbongbong.pro.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 搜索条件之and和or
 * @author 吴峰
 * @version v1.0
 * @date 2019/4/4 14:13
 * @since v1.0
 */
@Getter
public enum RelTypeEnum {

    /**
     * 搜索条件之and和or
     */
    AND(1, "and", "enum.relType.memo.and"),
    OR(2, "or", "enum.relType.memo.or"),
    ;

    private Integer code;

    private String alias;

    private String memo;

    RelTypeEnum(Integer code, String alias, String memo) {
        this.code = code;
        this.alias = alias;
        this.memo = memo;
    }

    public String getMemo() {
        return I18nMessageUtil.getMessage(memo);
    }
}
